<div id="stage-{{stage.id}}" stageId="{{stage.id}}" stageClone="{{stage}}" class="stage-item"
     ng-mouseover="onStageMenuMouseOver($event)">
    <div class="stage-wrap" ng-class="{'unreach-wip':stage.wipLimit>stage.cardsNode.cards.length&&stage.inProcess}">
        <div class="stage-title" data-type="text">
            <span class="thiki-menu-ico stage-ico glyphicon glyphicon-th"
                  ng-if="stage.type===0||stage.status===0"></span>

            <span class="thiki-menu-ico stage-ico glyphicon glyphicon-circle-arrow-right"
                  ng-if="stage.type==1&&stage.status!=9&&stage.wipLimit>stage.cardsNode.cards.length"></span>

            <span class="thiki-menu-ico stage-ico glyphicon glyphicon-ok-sign"
                  ng-if="stage.type==1&&stage.status==9"></span>
            <span class="thiki-menu-ico stage-ico glyphicon glyphicon-briefcase" ng-if="stage.archived"></span><span
                uib-tooltip=" {{stage.description}}" tooltip-class="tooltip-default" tooltip-placement="bottom"
                tooltip-trigger="mouseenter"> {{stage.title}}</span>
            <span class="badge stage-cards-length">{{cardsCount}}</span>
        </div>
        <div class="dropdown stage-menu thiki-animation">
            <span class="stage-menu-ico dropdown-toggle glyphicon glyphicon-tasks" data-toggle="dropdown"
                  aria-haspopup="true" aria-expanded="true"></span>
            <ul class="thiki-menu-items dropdown-menu" aria-labelledby="dropdownMenu1">
                <li class="thiki-menu-item">
                    <a ng-click="toFullScreen()">
                        <span class="thiki-menu-ico glyphicon glyphicon-fullscreen"></span>全屏
                    </a>
                </li>
                <li class="thiki-menu-item" ng-hide="stage.archived">
                    <a ng-click="openStageConfiguration()">
                        <span class="thiki-menu-ico glyphicon glyphicon-cog"></span>配置
                    </a>
                </li>
                <li role="separator" class="divider" ng-hide="stage.archived"></li>
                <li class="thiki-menu-item thiki-delete-item" ng-hide="stage.archived">
                    <a ng-click="openModal(stage.title,stage._links.self.href)">
                        <span class="thiki-menu-ico glyphicon glyphicon-trash"></span>删除
                    </a>
                </li>
            </ul>
        </div>
        <cards stage="stage" board="board"/>
    </div>
</div>